<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<title>G-File</title>
		<link rel="stylesheet" href="layui/css/layui.css">
	</head>
	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">G-File</div>
				<!-- 头部区域（可配合layui已有的水平导航） -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item"><a onclick="switchHtml('sftpManage')">SFTP管理</a></li>
					<li class="layui-nav-item"><a onclick="switchHtml('dbManage')">数据源管理</a></li>
					<li class="layui-nav-item"><a onclick="switchHtml('instManage')">机构信息管理</a></li>
					<li class="layui-nav-item">
						<a href="javascript:;">其它设置</a>
						<dl class="layui-nav-child">
							<dd><a href="">待定</a></dd>
							<dd><a href="">待定</a></dd>
							<dd><a href="">待定</a></dd>
						</dl>
					</li>
				</ul>

			</div>

			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree" lay-filter="test">
						<li class="layui-nav-item layui-nav-itemed">
							<a class="" href="javascript:;">所有机构</a>
							<dl class="layui-nav-child">
								<dd><a onclick="switchHtml('inst-ths')">同花顺</a></dd>
								<dd><a onclick="switchHtml('inst-zxyh')">中信银行</a></dd>
								<dd><a onclick="switchHtml('inst-360')">360</a></dd>
								<dd><a onclick="switchHtml('inst-all')">所有</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item layui-this"><a onclick="switchHtml('form')">文件生成</a></li>
						<li class="layui-nav-item"><a onclick="switchHtml('upload')">文件上传</a></li>
						<li class="layui-nav-item"><a onclick="switchHtml('fileManage')">文件管理</a></li>
					</ul>
				</div>
			</div>

			<div class="layui-body">
				<!-- 内容主体区域 -->
				<iframe src="form.html" frameborder=no scrolling="yes" style=" overflow-x:scroll; overflow-y:hidden; "
                        width="100%" height="100%"></iframe>
			</div>

			<div class="layui-footer">
				<!-- 底部固定区域 -->
				coding....
			</div>
		</div>
		<script src="layui/layui.js"></script>
		<script>
			function switchHtml(type) {
				$('iframe').attr('src', type + ".html")
			}
		</script>
		<script>
			//JavaScript代码区域
			layui.use('element', function() {
				var element = layui.element;
				var form = layui.form,
					layer = layui.layer,
					layedit = layui.layedit,
					laydate = layui.laydate,
					element = layui.element;
				$ = layui.jquery;

			});
		</script>
	</body>
</html>
